Add UIImage/NSImage ImageProvider implementation#822
Conversation
🤖 Augment PR SummarySummary: Adds platform image-provider support for Changes:
🤖 Was this summary useful? React with 👍 or 👎 |
| } | ||
|
|
||
| private var resizingInfo: Image.ResizingInfo? { | ||
| guard capInsets != .zero else { return nil } |
There was a problem hiding this comment.
This guard capInsets != .zero drops resizingInfo even when resizingMode == .tile, which can lose tiling behavior for images created with zero insets (e.g. resizableImage(withCapInsets: .zero, resizingMode: .tile)). Consider ensuring tile-mode images still produce a non-nil Image.ResizingInfo.
Severity: medium
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #822 +/- ##
==========================================
- Coverage 27.47% 27.46% -0.02%
==========================================
Files 661 663 +2
Lines 42444 42510 +66
==========================================
+ Hits 11663 11675 +12
- Misses 30781 30835 +54 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b36c69c to
a705f8b
Compare
a705f8b to
b768307
Compare
Summary
UIImage._resolve(in:)matching SwiftUI binary behavior: orientation conversion, contents extraction (CGImage/IOSurface), symbol image layout metrics with content insets, unrotated pixel size computation, rendering mode mapping, and resizing infoNSImage.resolve(in:)with correctdisplayScale-based pixel size computation andVectorImageLayercontentsGraphicsImage.image(with:variableValue:at:)for named/system/private-system image lookup_hasImageAsset,ioSurface,contentInsets,imageNamed:inBundle:,_systemImageNamed:variantsTest plan